﻿using DomainEventDemo.Extensions;
using DomainEventDemo.Orders.DomainEvents;

namespace DomainEventDemo.Orders
{
    public class Order : ExtensionAggregateRoot<int>
    {
        private Order()
        {

        }

        public Order(string name)
        {
            Name = name;
            AddLocalEvent(new OrderCustomDomainEvent(this));
        }

        public string Name { get; private set; }
    }
}
